package com.softa.common.sysconfig.mybatis.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.softa.common.sysconfig.mybatis.entity.BootBaseMapperDTO;
import org.apache.ibatis.annotations.Update;

/**
 * Created by yangl on 2018/5/12.
 */
public interface BootBaseMapper<T> extends BaseMapper<T> {

    /**
     * 自定义通用方法
     *  当要更新modifieddate 时候使用
     *
     * @return
     */
    @Update({"update ","${tableName}","set deleted=1,modified_date=now() where ${key} = ${value} "})
    Integer deleteOneById(BootBaseMapperDTO bootBaseMapperDTO);

}
